package cn.com.yusys.yusp.admin.service;

import cn.com.yusys.yusp.admin.repository.mapper.GridLoginTimesReportMapper;
import cn.com.yusys.yusp.commons.mapper.QueryModel;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class GridLoginTimesReportService {

    @Resource
    GridLoginTimesReportMapper gridLoginTimesReportMapper;


    public List<Map<String, Object>> getGridLoginTimesReportInfo(QueryModel model) {
        PageHelper.startPage(model.getPage(), model.getSize());
        List<Map<String, Object>> list = gridLoginTimesReportMapper.getGridLoginTimesReportInfo(model);
        PageHelper.clearPage();
        return list;
    }
}
